package com.fowo.api.model.tmp.jm.order.children;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 独立站订单子表临时表 导入导出辅助模型 */
@Getter
@Setter
public class TmpJmOrderChildrenExcelPo {

  @ExcelProperty(value = "规格id")
  private Long specificationsId;

  @Size(max = 500, message = "规格信息长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "规格信息")
  private String specInfo;

  @ExcelProperty(value = "方案id")
  private Long schemeId;

  @ExcelProperty(value = "数量")
  private Integer quantity;

  @ExcelProperty(value = "保护计划id")
  private Long protectionId;

  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "支付金额")
  private java.math.BigDecimal paymentPrice;

  @ExcelProperty(value = "原价")
  private java.math.BigDecimal originPrice;

  @ExcelProperty(value = "订单id")
  private Long orderId;

  @Size(max = 50, message = "名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "名称")
  private String name;

  @Size(max = 50, message = "物流单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物流单号")
  private String logisticsNo;

  @ExcelProperty(value = "物流id")
  private Long logisticsId;

  @ExcelProperty(value = "物流公司")
  private Long logisticsCompany;

  @Size(max = 100, message = "留言长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "留言")
  private String leaveMessage;

  @ExcelProperty(value = "副戒id")
  private Long accessoryRingId;

  @Size(max = 20, message = "是否刻字长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "是否刻字")
  private String isFont;

  @Size(max = 50, message = "免费信息长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "免费信息")
  private String infoText;

  @Size(max = 50, message = "雕刻文字长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "雕刻文字")
  private String graveFont;

  @ExcelProperty(value = "商品id")
  private Long goodsId;

  @Size(max = 200, message = "商品sku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品sku")
  private String goodsCode;

  @ExcelProperty(value = "礼品包装id")
  private Long giftId;

  @ExcelProperty(value = "字体id")
  private Long fontId;

  @ExcelProperty(value = "附件", converter = ImageConvert.class)
  private List<SysFile> files;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "描述")
  private String description;

  @ExcelProperty(value = "币种")
  private Long currencyExchangeRateId;
}
